<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../common/taglibs.jsp"%>
<form id="saveForm" action="user!saveUser.action" method="post">
	<div style="margin-bottom: 5px">
		<input type="button" value="添加" onclick="insRow()" /> <input
			type="submit" value="保存" /> <input type="button" value="删除"
			onclick="delRow()" />
			<input id="sousuo" style="float: right;"
			type="button" value="搜索" />
	</div>
	<table id=ttb98>
		<tr>
			<th width="20px"><input id="checkedall" type="checkbox"
				onclick="checkallbox_()" />
			</th>
			<th>用户名</th>
			<th>密码</th>
		</tr>
		<s:iterator value="users" var="userlist" status="list">
			<tr>
				<td><input type="checkbox" name="box"
					value="${userlist.userid}" onclick="checkonebox_()" /> <input
					type="hidden"
					name="users[<s:property value="#list.index"/>].userid"
					value="${userlist.userid}" />
				</td>
				<td><input style="width: 97%;" readonly="readonly" type="text"
					name="users[<s:property value="#list.index"/>].username"
					value="${userlist.username}" />
				</td>
				<td><input style="width: 97%" type="text"
					name="users[<s:property value="#list.index"/>].password"
					value="${userlist.password}" />
				</td>
			</tr>
		</s:iterator>
	</table>
</form>
